// IEC104_ToolView.h : interface of the CIEC104_ToolView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_IEC104_TOOLVIEW_H__30624A08_E874_46C7_9C40_3070C6454D36__INCLUDED_)
#define AFX_IEC104_TOOLVIEW_H__30624A08_E874_46C7_9C40_3070C6454D36__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CIEC104_ToolDoc;

class CIEC104_ToolView : public CFormView
{
protected: // create from serialization only
	CIEC104_ToolView();
	DECLARE_DYNCREATE(CIEC104_ToolView)

public:
	//{{AFX_DATA(CIEC104_ToolView)
	enum { IDD = IDD_IEC104_TOOL_FORM };
	CMyRichEdit	m_MsgRichEdit;
	//}}AFX_DATA

// Attributes
public:
	CIEC104_ToolDoc* GetDocument();

	bool b_Display ;
	int m_CurSelAsduType;
	void DisplayMsg(BYTE *pData, int nLen, BYTE MsgType);
	void OnClean() ;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CIEC104_ToolView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CIEC104_ToolView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CIEC104_ToolView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in IEC104_ToolView.cpp
inline CIEC104_ToolDoc* CIEC104_ToolView::GetDocument()
   { return (CIEC104_ToolDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_IEC104_TOOLVIEW_H__30624A08_E874_46C7_9C40_3070C6454D36__INCLUDED_)
